package com.disk.service;

import com.disk.entity.dto.SessionWebUserDto;
import com.disk.entity.dto.UploadResultDto;
import com.disk.entity.po.FileInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.disk.entity.query.FileInfoQuery;
import com.disk.entity.vo.PaginationResultVO;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 文件信息 服务类
 * </p>
 *
 * @author zsy
 * @since 2024-08-06
 */
public interface FileInfoService extends IService<FileInfo> {

    PaginationResultVO<FileInfo> findListByPage(FileInfoQuery query);

    UploadResultDto uploadFile(SessionWebUserDto webUserDto, String fileId, MultipartFile file,
                               String fileName, String filePid, String fileMd5,
                               Integer chunkIndex, Integer chunks);

    FileInfo newFolder(String userId, String filePid, String fileName);

    FileInfo rename(String userId, String fileId, String fileName);
}
